package com.meteor.convert;

import com.meteor.entity.Room;
import com.meteor.entity.Unit;
import com.meteor.vo.RoomVO;
import com.meteor.vo.UnitVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface RoomConvert {

    RoomConvert INSTANCE = Mappers.getMapper(RoomConvert.class);

    RoomVO convert(Room entity);

    Room convert(RoomVO vo);

    List<RoomVO> convertList(List<Room> list);

}
